package com.itheima.edu.info.manager.util;

import com.itheima.edu.info.manager.dao.BaseStaffDao;
import com.itheima.edu.info.manager.dao.OtherStaffDao;

public class StaffFactory {
    private static BaseStaffDao baseStaffDao;
    public static BaseStaffDao getStaffDao(){
        if (baseStaffDao == null){
            baseStaffDao = new OtherStaffDao();
        }
        return baseStaffDao;
    }
}
